﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVMDemo01.Models
{
    public class DataModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler? PropertyChanged;
		
        private int value1;

		public int Value1
		{
			get { return value1; }
			set { value1 = value; }
		}

		private int value2;

		public int Value2
		{
			get { return value2; }
			set { value2 = value; }
		}

		private int value3;

        public int Value3
		{
			get { return value3; }
			set { 
				value3 = value;
				PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value3"));

            }
		}

	}
}
